/* James McTaggart (jcm28) Informatics
Multimedia Communications Technology - 17th May 2007
In making this submission I declare that my work contains no examples
of misconduct, such as plagiarism, collusion, or fabrication of results.
*/

package server;

import java.net.InetAddress;

public class Connection {

	private int port;
	private InetAddress ip;
	
	public Connection(int port, InetAddress ip) {
		this.ip = ip;
		this.port = port;
	}
	
	
	
	public InetAddress getIp() {
		return ip;
	}



	public int getPort() {
		return port;
	}



	@Override
	public boolean equals(Object obj) {
		Connection other = (Connection)obj;
		return other.ip.equals(this.ip)&&other.port==this.port;
	}

}
